package com.seu.clab.farm.model.dao.mapper;

import com.seu.clab.farm.model.dao.entity.Phone;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
@Repository
public interface PhoneMapper extends Mapper<Phone> {
    @Update("update phone set phones='${phone}' where id=1")
    Integer updatePhone(String phone);

    @Select("select phones as phone from phone where id=1")
    String getPhone();
}